package com.xlhj.auth2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName HelloController
 * @Description TODO
 * @Author liucaijing
 * @Date 2021/2/26 17:24
 * @Version 1.0
 */
@RestController
public class HelloController {

    @GetMapping("/admin/hello")
    public String admin() {
        return "Hello admin!";
    }

    @GetMapping("/user/hello")
    public String user() {
        return "Hello user!";
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }
}
